
/**
 * @author Nicholas Gilbert
 * Class to hold information about the available files on the
 * system
 */
public class File {
	public String name; //the file name
	public int size; //the size of the file
	public String Peer; //the peer that has this file
	public String shortAbstract; //a short abstract of the file
	private byte[]fileHash; //the files hash used for searching
	
	/**
	 * @return file hash
	 */
	public byte[] getHash()
	{
		return fileHash;
	}
	public void setHash(byte[] pass)
	{
		fileHash=pass;
	}
	public String toString()
	{
		return "class:File"+";"+name+";"+size+";"+Peer+";"+shortAbstract+";";
	}

}
